GrapeCity MultiRow Windows Forms Documentation
CreateGridTemplateForColumnMode(IEnumerable<Cell>,Int32,AutoGenerateGridTemplateStyles,Int32) Method


A Cell collection that is filled to the standard left-to-right layout matrix template.
A System.Int32 that indicates the maximum rows height.
One of the AutoGenerateGridTemplateStyles values that indicate which elements are generated in the template.
A System.Int32 that indicates the row header's height.
Creates a standard left-to-right layout matrix Template with the specified cells.
Syntax
Public Overloads Shared Function CreateGridTemplateForColumnMode( _
   ByVal cells As IEnumerable(Of Cell), _
   ByVal rowsMaxHeight As Integer, _
   ByVal autoGeneratorGridTemplateStyles As AutoGenerateGridTemplateStyles, _
   ByVal rowHeaderCellHeight As Integer _
) As Template
Dim cells As IEnumerable(Of Cell)
Dim rowsMaxHeight As Integer
Dim autoGeneratorGridTemplateStyles As AutoGenerateGridTemplateStyles
Dim rowHeaderCellHeight As Integer
Dim value As Template
 
value = Template.CreateGridTemplateForColumnMode(cells, rowsMaxHeight, autoGeneratorGridTemplateStyles, rowHeaderCellHeight)
public static Template CreateGridTemplateForColumnMode( 
   IEnumerable<Cell> cells,
   int rowsMaxHeight,
   AutoGenerateGridTemplateStyles autoGeneratorGridTemplateStyles,
   int rowHeaderCellHeight
)

Parameters

cells
A Cell collection that is filled to the standard left-to-right layout matrix template.
rowsMaxHeight
A System.Int32 that indicates the maximum rows height.
autoGeneratorGridTemplateStyles
One of the AutoGenerateGridTemplateStyles values that indicate which elements are generated in the template.
rowHeaderCellHeight
A System.Int32 that indicates the row header's height.

Return Value

A Template that represents a standard left-to-right layout matrix Template.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe cells is a null reference (Nothing in Visual Basic).
System.ArgumentOutOfRangeException

The rowsMaxHeight is less than or equal to 0.

-or-

The rowHeaderCellHeight is less than or equal to 0.

System.ComponentModel.InvalidEnumArgumentExceptionThe autoGeneratorGridTemplateStyles value is not a valid AutoGenerateGridTemplateStyles value.
System.ArgumentException

There exists one cell in cells that is a null reference (Nothing in Visual Basic).

-or-

There exists one cell in cells that has been added to another Section or Template.

-or-

No cell exists in cells.

System.InvalidOperationExceptionThere exists one cell in cells that cannot be added in the Row section.
Remarks
You can change the CornerHeaderCell and RowHeaderCell's height with rowHeaderCellHeight when using CreateGridTemplateForColumnMode(IEnumerable<Cell>,Int32,AutoGenerateGridTemplateStyles).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Template Class
Template Members
Overload List
CreateGridTemplateForColumnMode(Int32) Method
CreateGridTemplateForColumnMode(Int32,Int32,Int32) Method
CreateGridTemplateForColumnMode(Int32,Int32,Int32,Int32) Method
CreateGridTemplateForColumnMode(Int32,Int32,Int32,Int32,AutoGenerateGridTemplateStyles) Method
CreateGridTemplateForColumnMode(Int32,Int32,Int32,Int32,AutoGenerateGridTemplateStyles,Int32) Method
CreateGridTemplateForColumnMode(IEnumerable<Cell>) Method
CreateGridTemplateForColumnMode(IEnumerable<Cell>,Int32) Method
CreateGridTemplateForColumnMode(IEnumerable<Cell>,Int32,AutoGenerateGridTemplateStyles) Method

 

 


Copyright © GrapeCity, inc. All rights reserved.